package com.zjy.heath_ms.pojo;

/**
 * 项目名 heath_ms
 * 类名  Order 体检预约信息
 * 作者 lzq
 * 创建时间  2025/5/25 9:43
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@TableName("t_order")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {
    public static final String ORDERTYPE_TELEPHONE = "电话预约";
    public static final String ORDERTYPE_WEIXIN = "微信预约";
    public static final String ORDERSTATUS_YES = "已到诊";
    public static final String ORDERSTATUS_NO = "未到诊";
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer memberId;//会员id
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;//预约日期
    private String orderType;//预约类型 电话预约/微信预约
    private String orderStatus;//预约状态（是否到诊）
    private Integer setmealId;//体检套餐id
    private Member member;
//    private Setmeal setmeal;
}
